package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * FertilizationsTypes generated by hbm2java
 */
@Entity
@Table(name="fertilizations_types"
    ,catalog="madr_bd10"
)
public class FertilizationsTypes  implements java.io.Serializable {


     private Integer idFerTyp;
     private String nameFerTyp;
     private Set fertilizationses = new HashSet(0);

    public FertilizationsTypes() {
    }

	
    public FertilizationsTypes(String nameFerTyp) {
        this.nameFerTyp = nameFerTyp;
    }
    public FertilizationsTypes(String nameFerTyp, Set fertilizationses) {
       this.nameFerTyp = nameFerTyp;
       this.fertilizationses = fertilizationses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_fer_typ", unique=true, nullable=false)
    public Integer getIdFerTyp() {
        return this.idFerTyp;
    }
    
    public void setIdFerTyp(Integer idFerTyp) {
        this.idFerTyp = idFerTyp;
    }
    
    @Column(name="name_fer_typ", nullable=false, length=45)
    public String getNameFerTyp() {
        return this.nameFerTyp;
    }
    
    public void setNameFerTyp(String nameFerTyp) {
        this.nameFerTyp = nameFerTyp;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="fertilizationsTypes")
    public Set getFertilizationses() {
        return this.fertilizationses;
    }
    
    public void setFertilizationses(Set fertilizationses) {
        this.fertilizationses = fertilizationses;
    }




}


